package com.chinasoft.liang;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class zhihang implements TrueWord {

    public zhihang() {
        wordList.add("开车嘟嘟嘟  ！");
        wordList.add("开飞机  ！");
        wordList.add("开坦克  ！");
    }
    List<String> wordList = new ArrayList<String>();
    Random random = new Random();
    @Override
    public String getName() {
        return "liang";
    }
    @Override
    public String getWords() {
        // 得到随机数
        int index = random.nextInt(wordList.size());
        return wordList.get(index);
    }
}
